package com.aliyun.messagemgt.service;

import com.aliyun.messagemgt.application.service.Impl.ResourceNameServiceImpl;
import com.aliyun.messagemgt.repository.mappers.ResourceNameMapper;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;


/**
 * @author
 * @date
 */

@RunWith(PowerMockRunner.class)
@PrepareForTest({ResourceNameServiceImpl.class})
public class ResourceNameServiceImplTest {

    @Mock
    private ResourceNameMapper resourceNameMapper;

    @InjectMocks
    private ResourceNameServiceImpl resourceNameServiceImpl;

   /* @Test
    public void test1() {
        String str = "123";
        Mockito.when(resourceNameMapper.findResourceName(Mockito.anyString(), Mockito.anyString(), Mockito.anyString(), Mockito.anyInt())).thenReturn(str);
        int id = 1;
        ResourceTypeEnum resouceType = ResourceTypeEnum.DATASOURCE;
        resourceNameServiceImpl.findResourceName(id, resouceType);
    }*/
}

